﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
	<link rel=Stylesheet type="text/css" href="/public/stylesheets/estilo.css">
	<meta http-equiv="Content-Type" content="Text/html; charset=UTF-8"/>
	<title>SGC</title>
	
	#{verbatim}
		${script}
	#{/verbatim}
</head>
<body>
	<div id="conteiner">
		<div id="cabecalho">
			<span id="logo">SGC</span>
			<span class="canto">
				<img src="/public/images/borda.png" id="borda" height="130px" width="80px"/>
				<span id="saudacao">Olá, Usuário. Bom dia!<br/><a href="@{Application.logout()}">Sair</a></span>
			</span>
		</div>
		<div id="menu">
			#{verbatim}${menu}#{/verbatim}
		</div>
		<div id="conteudo">
			<div class="titulo">Exibição de Hinos</div>
			<div class="exibicao">
			#{if lis.size() == 0}
			<span class="vazio">Não há Hinos Cadastrados.</span>
			#{/if}
			#{else}
				<table class="exibicaoHino">
				<tr class="topo">
					<td class="titulohino">Título</td>
					<td class="interprete">Intérprete</td>
					<td class="tipo">Tipo</td>
					<td></td>
					<td></td>
				</tr>
				#{list items:lis, as:'hino'}
					<tr class="item">
						<td>${hino.getTitulo()}</td>
						<td>${hino.getInterprete()}</td>
						#{if hino.getTipo() == 1}
							<td>Orquestra</td>
						#{/if}
						#{else}
							#{if hino.getTipo() == 2}
								<td>Instrumental</td>
							#{/if}
							#{else}
								<td>Accapela</td>
							#{/else}
						#{/else}
						<td class="botaoExibicao"><a href="@{HinoController.exibicaoHino(hino.getCodigo())}"><img src="/public/images/olho.jpg" width="15" height="15" alt="Ver"></a></td>
						<td class="botaoExibicao"><a href="@{HinoController.excluirHino(hino.getCodigo())}"><img alt="Atribuir Presencas" src="/public/images/excluir.jpg" width="15" height="15"></td>
					</tr>
				#{/list}
				</table>
			#{/else}
			</div>
		</div>
		<div id="rodape">
			#{verbatim}${rodape}#{/verbatim}
		</div>
	</div>
</body>
</html>
